<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简约时钟</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #fff;
        }
        
        .container {
            text-align: center;
            padding: 20px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
        }
        
        .clock {
            position: relative;
            width: 300px;
            height: 300px;
            margin: 0 auto 20px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: 10px solid rgba(255, 255, 255, 0.2);
            box-shadow: 
                inset 0 0 20px rgba(0, 0, 0, 0.2),
                0 5px 15px rgba(0, 0, 0, 0.5);
        }
        
        .clock::before {
            content: '';
            position: absolute;
            width: 15px;
            height: 15px;
            background: #fff;
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        }
        
        .hour, .minute, .second {
            position: absolute;
            top: 50%;
            left: 50%;
            transform-origin: bottom center;
            border-radius: 10px;
        }
        
        .hour {
            width: 8px;
            height: 70px;
            background: #fff;
            margin-top: -70px;
            transform: translateX(-50%) rotate(0deg);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        }
        
        .minute {
            width: 6px;
            height: 100px;
            background: #fff;
            margin-top: -100px;
            transform: translateX(-50%) rotate(0deg);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        }
        
        .second {
            width: 2px;
            height: 120px;
            background: #ff5252;
            margin-top: -120px;
            transform: translateX(-50%) rotate(0deg);
            z-index: 9;
        }
        
        .clock-mark {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
        }
        
        .mark {
            position: absolute;
            width: 5px;
            height: 15px;
            background: rgba(255, 255, 255, 0.7);
            left: 50%;
            transform: translateX(-50%);
        }
        
        .mark-3, .mark-9 {
            width: 15px;
            height: 5px;
            top: 50%;
            transform: translateY(-50%);
        }
        
        .mark-12 { top: 10px; }
        .mark-3 { left: calc(100% - 15px); }
        .mark-6 { top: calc(100% - 25px); }
        .mark-9 { left: 0; }
        
        .digital-clock {
            font-size: 2.5rem;
            font-weight: 700;
            margin: 15px 0;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
        }
        
        .date {
            font-size: 1.2rem;
            margin-bottom: 10px;
            opacity: 0.9;
        }
        
        .title {
            font-size: 2rem;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 3px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 class="title">简约时钟</h1>
        <div class="clock">
            <div class="clock-mark">
                <div class="mark mark-12"></div>
                <div class="mark mark-3"></div>
                <div class="mark mark-6"></div>
                <div class="mark mark-9"></div>
            </div>
            <div class="hour"></div>
            <div class="minute"></div>
            <div class="second"></div>
        </div>
        <div class="digital-clock">00:00:00</div>
        <div class="date">2023年10月1日 星期日</div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const hourHand = document.querySelector('.hour');
            const minuteHand = document.querySelector('.minute');
            const secondHand = document.querySelector('.second');
            const digitalClock = document.querySelector('.digital-clock');
            const dateElement = document.querySelector('.date');
            
            function updateClock() {
                const now = new Date();
                const hours = now.getHours();
                const minutes = now.getMinutes();
                const seconds = now.getSeconds();
                
                // 计算指针角度
                const secondDegrees = (seconds / 60) * 360;
                const minuteDegrees = (minutes / 60) * 360 + (seconds / 60) * 6;
                const hourDegrees = (hours / 12) * 360 + (minutes / 60) * 30;
                
                // 应用旋转角度
                secondHand.style.transform = `translateX(-50%) rotate(${secondDegrees}deg)`;
                minuteHand.style.transform = `translateX(-50%) rotate(${minuteDegrees}deg)`;
                hourHand.style.transform = `translateX(-50%) rotate(${hourDegrees}deg)`;
                
                // 更新数字时钟
                digitalClock.textContent = `${formatTime(hours)}:${formatTime(minutes)}:${formatTime(seconds)}`;
                
                // 更新日期
                const options = { year: 'numeric', month: 'long', day: 'numeric', weekday: 'long' };
                dateElement.textContent = now.toLocaleDateString('zh-CN', options);
            }
            
            function formatTime(time) {
                return time < 10 ? `0${time}` : time;
            }
            
            // 初始更新
            updateClock();
            
            // 每秒更新一次
            setInterval(updateClock, 1000);
        });
    </script>
</body>
</html>